﻿<phone:PhoneApplicationPage xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"  
    x:Class="PrayerTime.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}" 
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" Unloaded="PhoneApplicationPage_Unloaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="background2.jpg" Stretch="None"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="PRAYER TIMES" Style="{StaticResource PhoneTextNormalStyle}" Foreground="#FFC59221"/>
            <TextBlock x:Name="PageTitle" Text="prayer times" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Foreground="#FFC59221" />
            <ProgressBar Name="progressBar" Foreground="#FFC59221" Visibility="Collapsed" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <ListBox Name="prayerTimes" Margin="0,47,-12,-47" IsHitTestVisible="False">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal" Margin="0" Width="480" Height="65" >
                            <TextBlock Name="Prayer" Text="{Binding PrayerTitle}" Margin="12,0,9,0" Width="187" HorizontalAlignment="Right" FontSize="28" TextAlignment="Right" Foreground="#FFC59221" />
                            <StackPanel Width="226">
                                <TextBlock Name="prayerTime" Text="{Binding PrayerTime}" TextWrapping="Wrap"  FontSize="30" Foreground="#FFC59221" />
                                <TextBlock Name="prayerName" Text="{Binding PrayerAfterText}" TextWrapping="NoWrap" FontSize="17" Margin="12,-6,12,0" Foreground="#FF72530F" Width="300"/>
                            </StackPanel>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
                <!--<StackPanel Orientation="Horizontal" Margin="0" Width="480" Height="75" >
                        <TextBlock Name="Prayer" Text="Al Fajr" Margin="12,0,9,0" Width="187" HorizontalAlignment="Right" FontSize="45" TextAlignment="Right" />
                        <StackPanel Width="226">
                            <TextBlock Name="prayerTime" Text="04:33 PM" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}"/>
                            <TextBlock Name="prayerName" Text="After 2 Hours, " TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                        </StackPanel>
                    </StackPanel>-->
            </ListBox>
            <TextBlock Height="35" TextAlignment="Left" Margin="6,6,0,0" Name="Englishtxt"  VerticalAlignment="Top" HorizontalAlignment="Left" Width="210" Foreground="#FF72530F" />
            <TextBlock Height="30" TextAlignment="Right" HorizontalAlignment="Left" Margin="239,6,0,0" Name="Hijritxt"  VerticalAlignment="Top" Foreground="#FF72530F" Width="211" />
        </Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" Opacity="0.25" BackgroundColor="Black" ForegroundColor="#FF72530F" >
            <shell:ApplicationBarIconButton IconUri="icon.png" Text="Mosques" Click="ApplicationBarIconButton_Click_1"/>
            <shell:ApplicationBarIconButton IconUri="settings.png" Text="Settings" Click="ApplicationBarIconButton_Click"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="about" Click="ApplicationBarMenuItem_Click"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>